<template>
  <div id="contain">
    <div>
      <el-menu
        default-active="1"
        class="el-menu-demo"
        mode="horizontal"
        @select="handleSelect"
        style="width: 950px"
      >
        <el-menu-item index="1">未处理</el-menu-item>
        <el-menu-item index="2">已处理</el-menu-item>
      </el-menu>
    </div>
    <div>
      <yijianyes v-show="activeIndex === '2'"/>
      <yijianno v-show="activeIndex === '1'"/>
    </div>
  </div>
</template>

<script>
import yijianno from "@/views/Manage/yijianno.vue";
import yijianyes from "@/views/Manage/yijianyes.vue";

export default {
  components:{
    yijianno,
    yijianyes
  },
  data() {
    return {
      activeIndex: "1",
    };
  },
  methods: {
    handleSelect(key) {
      this.activeIndex = key;
    },
  },
};
</script>
<style  scoped>
</style>>